package org.xdshop.invitation.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.xdshop.cms.i.LeveContentService;
import org.xdshop.cms.pojo.LeveContent;

import java.util.List;

/**
 * Created by xiaodong on 16/7/31.
 */
@Controller
@RequestMapping(value = "/home")
public class HomeController {
    @Autowired
    private LeveContentService leveContentService;
    @RequestMapping(value = "index", method = RequestMethod.GET)
    public String index() {
        List<LeveContent> list = leveContentService.findAll();
        return "index";
    }
}
